package com.dorm.entity;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class Room extends BaseEntity {
    private Long id;
    private String roomNumber;
    private Long buildingId;
    private Integer capacity;
    private Integer currentOccupancy;
    
    @JsonBackReference
    private Building building;
    
    @JsonManagedReference
    private List<Student> students = new ArrayList<>();
    
    @JsonManagedReference
    private List<HygieneRecord> hygieneRecords = new ArrayList<>();
} 